import { HTTP } from "../utils/http";

class PhotoService extends HTTP {
  addPhoto(data) {
    return this.post({ url: `/user/:userId/photo`, data });
  }

  updatePhoto(id, data) {
    return this.patch({ url: `/user/:userId/photo/${id}`, data });
  }

  imageRisk(url) {
    return this.post({url: '/user/:userId/imageRisk', data: {url}});
  }
}

export { PhotoService };
